﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KMS.Core.domain.model.project;
using KMS.Core.domain.model.post;
using KMS.Core.domain.model.user;

namespace KMS.Core.application.impl
{
    public class SimpleProjectsService : IProjectsService
    {
        #region IProjectsService Members

        public IList<Project> FindProjectsForCurrentUser()
        {
            return new List<Project> { new Project("KMS"), new Project("Lab Checker"), new Project("Cool Project") };
        }

        #endregion

        #region IProjectsService Members


        public Project FindProject(int id)
        {
            return new Project("My Project");
        }

        #endregion

        #region IProjectsService Members


        public IList<Resource> FindResourcesForProject(int projectId)
        {
            return new List<Resource>
            {
                new Resource(new User("Dennis"), "How to connect to Oracle", "bla-bla-bla", new Project("My Project"), DateTime.Now.AddDays(-5)),
                new Resource(new User("Emel"), "Installing TFS 2010", "bla-bla-bla", new Project("My Project"), DateTime.Now.AddDays(-10)),
                new Resource(new User("TestUser"), "Introduction to DDD", "bla-bla-bla", new Project("My Project"), DateTime.Now.AddDays(-7))

            };
        }

        #endregion

        #region IProjectsService Members


        public Resource AddResourceToProject(string title, string content, int projectId)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
